package com.kingjw.lease.web.admin.service.impl;

import com.kingjw.lease.model.entity.FeeKey;
import com.kingjw.lease.web.admin.mapper.FeeKeyMapper;
import com.kingjw.lease.web.admin.service.FeeKeyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kingjw.lease.web.admin.vo.fee.FeeKeyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author liubo
* @description 针对表【fee_key(杂项费用名称表)】的数据库操作Service实现
* @createDate 2023-07-24 15:48:00
*/
@Service
public class FeeKeyServiceImpl extends ServiceImpl<FeeKeyMapper, FeeKey>
    implements FeeKeyService{

    /**
     * 这里会报红色是因为idea没有识别到我们统一配置的 @MapperScan("com.kingjw.lease.web.*.mapper")
     * 但是springboot 是识别的，不会影响程序的正常运行
     * 或者可以在Mapper 类上加上注解 @Mapper 来单独注入，就不会报红了
     */
    @Autowired
    private FeeKeyMapper mapper;

    @Override
    public List<FeeKeyVo> listFeeInfo() {
        return mapper.listFeeInfo();
    }
}




